"""
"""


class FLeagueError(Exception):
    """基类错误
    """
    pass


class ServerError(FLeagueError):
    status = 500
    title = "内部服务器错误"


class ClientError(FLeagueError):
    status = 400
    title = "错误请求"


class MissingParameterError(ClientError):
    title = "缺少参数"


class InvalidParameterError(ClientError):
    title = "参数错误"


class NotFoundError(ClientError):
    pass


class MobileDuplicatedError(ClientError):
    title = "手机号码已被占用"


class NicknameDuplicatedError(ClientError):
    title = "昵称已被占用"


class ClubError(ClientError):
    title = "俱乐部数据异常"


class ClubNameDuplicatedError(ClubError):
    title = "俱乐部名称已被占用"


class ClubFounderDuplicatedError(ClubError):
    title = "用户创建俱乐部数量已达上限"


class ClubMemberError(ClientError):
    title = "俱乐部成员数据异常"


class ClubMemberDuplicatedError(ClubMemberError):
    title = "加入俱乐部数量已达上限"
